
<html>

<head>
  <meta charset="utf-8">
  <title>小车控制界面</title>
  <script src="lib/jquery-2.1.0.min.js"></script>
  <script type="text/javascript">
    $(document).ready(function () {
      $("#forward").click(function(){
        $.get("car/forward",function(data,status){

        })
      });
      $("#backward").click(function(){
        $.get("car/backward",function(data,status){

        })
      })
      $("#left").click(function(){
        $.get("car/left",function(data,status){

        })
      })
      $("#right").click(function(){
        $.get("car/right",function(data,status){

        })
      })
      $("#stop").click(function(){
        $.get("car/stop",function(data,status){

        })
      })
    });
  </script>
</head>
<body>
  <button id="forward" >向前</button>
  <button id="backward" >向后</button>
  <button id="left" >左转</button>
  <button id="right" >右转</button>
  <button id="stop" >停止</button>
</body>
</html>
